import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PageHomeComponent } from './page-home/page-home.component';
import { PageActiveComponent } from './page-active/page-active.component';
import { PageMyComponent } from './page-my/page-my.component';
import { PageGoodsdetailComponent } from './page-goodsdetail/page-goodsdetail.component';
import { PageGoodsListComponent } from './page-goods-list/page-goods-list.component';

const routes: Routes = [
  {path:"home", component:PageHomeComponent},
  {path:"active", component:PageActiveComponent},
  {path:"my", component:PageMyComponent},
  {path:"list", component:PageGoodsListComponent},
  {path:"goodsdetail", component:PageGoodsdetailComponent},
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
  })
  export class DemoCypetRoutingModule { }
  